package cn.it62.pojo;

/**
 * @author zhenhuaShen
 * @version 1.0
 * @date 2019/7/31
 * @description cn.it62.pojo
 */
public class B extends A {
    private int k;

    public B(int i, int j,int k) {
        super(i, j);
        setK(k);
    }

    public int getK() {
        return k;
    }

    public void setK(int k) {
        this.k = k;
    }

    public void showK() {
        System.out.println("k=" + k);
    }

    public void sum() {
        int sum = getK() + getI() + getJ();
        System.out.println("sum=" + sum);
    }
}
